package com.ddyx.mapper;

import com.ddyx.entity.FaceNotice;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

@MyBatisRepository
public interface FaceNoticeMapper {
    int deleteByPrimaryKey(Integer noticeId);

    int insert(FaceNotice record);

    FaceNotice selectByPrimaryKey(Integer noticeId);

    List<FaceNotice> selectAll();

    int updateByPrimaryKey(FaceNotice record);
    
    
    List<FaceNotice> findLatestNotice(@Param("now")String now);
    int countLatestNotice(@Param("now")String now);

    List<Map<String,Object>> findNoticeByMsec(@Param("msec")Long msec);
    int countNoticeByMsec(@Param("msec")Long msec);
    
    int countNotice(@Param("page")int page,@Param("size")int size);
    List<FaceNotice> findNotice(@Param("page")int page,@Param("size")int size);
    int updateNoticeStatus(@Param("ids")String ids);
}